﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ucListChip.ascx.cs" Inherits="Admin_ucControl_ucListChip" %>
<style type="text/css">
    .style1
    {
        width: 100%;
    }
</style>
<div class="PostContent">
    <asp:HyperLink ID="hyperNew" runat="server" NavigateUrl="~/Admin/AddNewChip.aspx">Add New</asp:HyperLink>
    <asp:GridView ID="grdProduct" Width="100%" runat="server" AutoGenerateColumns="False"
        CssClass="grd" OnPageIndexChanging="grdProduct_PageIndexChanging">
        <Columns>
            <asp:BoundField DataField="IDChip" HeaderText="ID" />
            <asp:HyperLinkField DataNavigateUrlFields="IDChip" DataNavigateUrlFormatString="~/Admin/AddNewChip.aspx?id={0}"
                DataTextField="ChipName" HeaderText="Name" />
             <asp:BoundField DataField="TypeName" HeaderText="Type Name" />
            <asp:BoundField DataField="ItemDescription" HeaderText="Description" />
            <asp:BoundField DataField="Price" HeaderText="Price" />
            <asp:TemplateField HeaderText="Delete">
                <ItemTemplate>
                    <asp:ImageButton ID="btnModelDelete" runat="server" CausesValidation="false" CommandName="delete"
                        CommandArgument='<%# Eval("IDChip") %>' ImageUrl="~/Admin/img/del.gif" OnClick="btnModelDelete_Click" />
                </ItemTemplate>
                <ItemStyle HorizontalAlign="Center" Width="60px" />
            </asp:TemplateField>
        </Columns>
        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
        <HeaderStyle CssClass="grdHeader" />
        <EditRowStyle BackColor="#2461BF" />
        <AlternatingRowStyle CssClass="grdAlternateRow" />
        <PagerSettings PageButtonCount="6" />
        <RowStyle CssClass="grdRow" />
    </asp:GridView>
</div>
